<?php
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
    include "../../config.php";




    $_setting=select_lines_all_items($table_prefix."facebook_setting",'nid asc',"1 =1 ",'1');

    //$_setting[0]['wedding_keyword']  字符串转换成数组
    $_setting[0]['wedding_keyword']  =explode(";",$_setting[0]['wedding_keyword']);
    //在所有的数组中，随机选择一个
    $_keyword=$_setting[0]['wedding_keyword'][array_rand($_setting[0]['wedding_keyword'])];



?>

<h1><?echo $_keyword;?></h1>
<h2>https://www.facebook.com/search/pages/?q=<?echo $_keyword;?></h2>
<h3>https://www.facebook.com/groups/search/groups_home/?q=<?echo $_keyword;?></h3>

